package com.sxf.auth.login.vo;

import com.sxf.auth.enums.UserTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: TODO
 * @Author Leo
 * @date 2024/3/1621:16
 */
@Data
public class LoginReq {
    @ApiModelProperty(value = "手机号,受试者端登陆必填")
    @Length(min = 11,max = 11,message = "手机号格式不正确")
    private String userMobile;

    @ApiModelProperty(value = "登陆账号，运营端/客户管理端/临床填报端必填")
    private String account;

    @ApiModelProperty(value = "密码或者手机验证码",required = true)
    @NotBlank(message = "密码或者手机验证码不能为空")
    private String checkCode;

    @ApiModelProperty("1:手机验证码登录，2：账号密码登录")
    @NotNull(message = "登录类型不能为空")
    private String loginType;

    @ApiModelProperty(value = UserTypeEnum.DESC, required = true)
    private String userType;
}
